Rename from gbuild to hacktree
authorColin Walters <walters@verbum.org>
Mon, 10 Oct 2011 22:46:57 +0000 (18:46 -0400)
committerColin Walters <walters@verbum.org>
Mon, 10 Oct 2011 22:46:57 +0000 (18:46 -0400)
Makefile-gbuild.am [deleted file]
Makefile-hacktree.am [new file with mode: 0644]
Makefile.am
configure.ac
src/gbuild.in [deleted file]
src/hacktree.in [new file with mode: 0644]

diff --git a/Makefile-gbuild.am b/Makefile-gbuild.am
deleted file mode 100644 (file)
index 13b0971..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-bin_SCRIPTS += gbuild
-
-SUBSTITUTIONS = sed -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON\@,$(PYTHON),
-
-gbuild: src/gbuild.in Makefile
-       $(AM_V_GEN) $(SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
-       @chmod a+x $@
-
-CLEANFILES += gbuild
diff --git a/Makefile-hacktree.am b/Makefile-hacktree.am
new file mode 100644 (file)
index 0000000..3215ff6
--- /dev/null
@@ -0,0 +1,9 @@
+bin_SCRIPTS += hacktree
+
+SUBSTITUTIONS = sed -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON\@,$(PYTHON),
+
+hacktree: src/hacktree.in Makefile
+       $(AM_V_GEN) $(SUBSTITUTIONS) $< > $@.tmp && mv $@.tmp $@
+       @chmod a+x $@
+
+CLEANFILES += hacktree
index a08ca529dae815dd9156049356a27f4bba01eaeb..a2dc2690054a63cbdc7824eb29224708a3cbc210 100644 (file)
@@ -8,4 +8,4 @@ noinst_LTLIBRARIES =
 noinst_PROGRAMS =
 
 
-include Makefile-gbuild.am
+include Makefile-hacktree.am
index 02c69ed2180968d4071f3903a5b75b1cbc0d4077..49b3fa63f9d64370068e8d1fd1598446649ab4d8 100644 (file)
@@ -19,6 +19,8 @@ PKG_PROG_PKG_CONFIG
 
 PKG_CHECK_MODULES(GIO_UNIX, [gio-unix-2.0])
 
+AM_PATH_PYTHON
+
 AC_CONFIG_FILES([
 Makefile
 ])
diff --git a/src/gbuild.in b/src/gbuild.in
deleted file mode 100644 (file)
index 76ba889..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-echo test
diff --git a/src/hacktree.in b/src/hacktree.in
new file mode 100644 (file)
index 0000000..fd43d11
--- /dev/null
@@ -0,0 +1,31 @@
+#!@PYTHON@
+# -*- Mode: Python -*-
+# Copyright (C) 2011  Colin Walters <walters@verbum.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+
+import os
+import sys
+import re
+
+import __builtin__
+
+__builtin__.__dict__['DATADIR'] = "@datarootdir@"
+
+path = os.path.join('@libdir@', 'hacktree')
+sys.path.insert(0, path)
+